package com.bupt.liutong.admin.core.form;

import com.bupt.liutong.admin.core.base.BaseForm;

public class PopWindowForm extends BaseForm {
	private static final long serialVersionUID = 1410596549773001637L;
	// Config
	private String type;
	/** 配置文件中，窗口的唯一标识名 */
	private String windowName;
	private String dto;
	private String sqlMapId;
	private String countSqlMapId;
	/** 弹出框标题名 */
	private String windowTitle;

	/** 搜索条件的显示文字 */
	private String searchPropDisp;
	private String[] searchPropDispArr;

	/** 搜索条件的字段名（或属性名） */
	private String searchProp;
	private String[] searchPropArr;
	
	/** 结果集包含的字段名（或属性名） */
	private String resultProp;
	private String[] resultPropArr;

	/** 结果集的显示文字 */
	private String resultPropDisp;
	private String[] resultPropDispArr;
	
	/** 回写的属性 */
	private String writeBackProp;
	private String[] writeBackPropArr;
	
	/** 回写的值 */
	private String writeBackVal;
	private String[] writeBackValArr;
	
	// Url
	/** 是单选页面还是多选页面, radio:单选 ; checkbox:多选 */
	private String selStyle;
	/** 确定回显的内容位于哪一个form */
	private String formName;
	/** 页面上所有需要回显值的属性名，默认第一个是id值，第二个是name值 */
	private String pageProp;
	private String[] pagePropArr;
	

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getWindowName() {
		return windowName;
	}

	public void setWindowName(String windowName) {
		this.windowName = windowName;
	}

	public String getDto() {
		return dto;
	}

	public void setDto(String dto) {
		this.dto = dto;
	}

	public String getSqlMapId() {
		return sqlMapId;
	}

	public void setSqlMapId(String sqlMapId) {
		this.sqlMapId = sqlMapId;
	}

	public String getCountSqlMapId() {
		return countSqlMapId;
	}

	public void setCountSqlMapId(String countSqlMapId) {
		this.countSqlMapId = countSqlMapId;
	}

	public String getWindowTitle() {
		return windowTitle;
	}

	public void setWindowTitle(String windowTitle) {
		this.windowTitle = windowTitle;
	}

	public String getSelStyle() {
		return selStyle;
	}

	public void setSelStyle(String selStyle) {
		this.selStyle = selStyle;
	}

	public String getFormName() {
		return formName;
	}

	public void setFormName(String formName) {
		this.formName = formName;
	}

	public String getPageProp() {
		return pageProp;
	}

	public void setPageProp(String pageProp) {
		this.pageProp = pageProp;
		if (pageProp != null)
			this.pagePropArr = pageProp.split(",");
	}

	public String[] getPagePropArr() {
		return pagePropArr;
	}

	public String[] getSearchPropDispArr() {
		return searchPropDispArr;
	}

	public void setSearchPropDispArr(String[] searchPropDispArr) {
		this.searchPropDispArr = searchPropDispArr;
	}

	public String[] getSearchPropArr() {
		return searchPropArr;
	}

	public void setSearchPropArr(String[] searchPropArr) {
		this.searchPropArr = searchPropArr;
	}

	public String[] getResultPropArr() {
		return resultPropArr;
	}

	public void setResultPropArr(String[] resultPropArr) {
		this.resultPropArr = resultPropArr;
	}

	public String[] getResultPropDispArr() {
		return resultPropDispArr;
	}

	public void setResultPropDispArr(String[] resultPropDispArr) {
		this.resultPropDispArr = resultPropDispArr;
	}

	public String getWriteBackVal() {
		return writeBackVal;
	}

	public void setWriteBackVal(String writeBackVal) {
		this.writeBackVal = writeBackVal;
		if (writeBackVal != null)
			this.writeBackValArr = writeBackVal.split(",");
	}

	public String[] getWriteBackValArr() {
		return writeBackValArr;
	}

	public void setWriteBackValArr(String[] writeBackValArr) {
		this.writeBackValArr = writeBackValArr;
	}

	public String[] getWriteBackPropArr() {
		return writeBackPropArr;
	}

	public void setWriteBackPropArr(String[] writeBackPropArr) {
		this.writeBackPropArr = writeBackPropArr;
	}

	public String getSearchPropDisp() {
		return searchPropDisp;
	}

	public void setSearchPropDisp(String searchPropDisp) {
		this.searchPropDisp = searchPropDisp;
		this.searchPropDispArr = searchPropDisp.split(",");
	}

	public String getSearchProp() {
		return searchProp;
	}

	public void setSearchProp(String searchProp) {
		this.searchProp = searchProp;
		this.searchPropArr = searchProp.split(",");
	}

	public String getResultProp() {
		return resultProp;
	}

	public void setResultProp(String resultProp) {
		this.resultProp = resultProp;
		this.resultPropArr = resultProp.split(",");
	}

	public String getResultPropDisp() {
		return resultPropDisp;
	}

	public void setResultPropDisp(String resultPropDisp) {
		this.resultPropDisp = resultPropDisp;
		this.resultPropDispArr = resultPropDisp.split(",");
	}

	public String getWriteBackProp() {
		return writeBackProp;
	}

	public void setWriteBackProp(String writeBackProp) {
		this.writeBackProp = writeBackProp;
		this.writeBackPropArr = writeBackProp.split(",");
	}
}
